package com.jinlia.show.modules.system.controller;

import com.jinlia.show.modules.system.model.vo.OrderPrinter;
import com.jinlia.show.modules.system.service.OrderPrinterService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequiredArgsConstructor
@RequestMapping("/orderPrinter")
public class OrderPrinterController {
    private final OrderPrinterService orderPrinterService;

    @GetMapping("{id}")
    public OrderPrinter getOrderPrinter(@PathVariable("id") Long saleOrderId) {
        return orderPrinterService.getOrderPrinter(saleOrderId);
    }
}
